package com.atguigu.srb.core.service.impl;

import com.atguigu.srb.core.mapper.IntegralGradeMapper;
import com.atguigu.srb.core.model.IntegralGrade;
import com.atguigu.srb.core.service.IntegralGradeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IntegralGradeServiceImpl extends ServiceImpl<IntegralGradeMapper, IntegralGrade> implements IntegralGradeService {

    @Resource
    private IntegralGradeMapper integralGradeMapper;

    @Override
    public List<IntegralGrade> list() {
        return integralGradeMapper.selectList(null);
    }

    @Override
    public Boolean deleteById(Long id) {
        return integralGradeMapper.deleteById(id) > 0;
    }
}
